﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.RightConfig.User.UserList" %>


<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<%@ Register src="/SystemManage/Control/CascadeComboxControl.ascx" tagname="CascadeComboxControl" tagprefix="uc1" %>
<form id="pageForm" method="post" class="pageForm" runat="Server">
<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">
	
		<table class="searchContent">
	        <tr>  
				<td align=right>
					地区：</td>
				<td align=left>
                
                <uc1:CascadeComboxControl ID="ProvinceCascadeCombox1" runat="server" EmptyText="--省--"
                    Category="Province" DataSourceUrl='/Interface/ajax/CommandService.aspx?key=Pub.LoadAddress&param={"Category":"Province","KeyValuePairString":"{value}"}' 
                    ReferenceCategory="City" Group="addr1"  ConditionName="Province"/>
                    
               <uc1:CascadeComboxControl ID="CityCascadeCombox1" runat="server" EmptyText="--市--"
                    Category="City" DataSourceUrl='/Interface/ajax/CommandService.aspx?key=Pub.LoadAddress&param={"Category":"City","KeyValuePairString":"{value}"}' 
                    Group="addr1" ReferenceCategory="Area"  ConditionName="City"/>
                    
                <uc1:CascadeComboxControl ID="AreaCascadeCombox1" runat="server" EmptyText="--区--"
                    Category="Area" DataSourceUrl='/Interface/ajax/CommandService.aspx?key=Pub.LoadAddress&param={"Category":"Area","KeyValuePairString":"{value}"}' 
                     Group="addr1" ConditionName="Area"/>
                </td>

				<td align=right>
					角色：</td>
				<td align=left><asp:dropdownlist runat="server" id="role" cond="role" class="combox"></asp:dropdownlist></td>
				<td align=right>
					名称：</td>
				<td  align=left><asp:TextBox ID="name" runat="server" cond="name" width="80"></asp:TextBox></td>
				<td align=right>
					帐号：</td>
				<td  align=left><asp:TextBox ID="code" runat="server" cond="code" width="80"></asp:TextBox></td>
			</tr>
		</table>
		
	    <div class="subBar">
			<ul>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="/SystemManage/Basics/RightConfig/User/UserDetail.aspx" target="navTab" rel="UserDetail" title="用户明细"><span>添加</span></a></li>
            <li><a class="icon" href="/SystemManage/Basics/RightConfig/User/UserDelete.aspx?stat=1" target="selectedTodo" title="请确定要启用勾选帐号"><span>启用</span></a></li>
            <li><a class="icon" href="/SystemManage/Basics/RightConfig/User/UserDelete.aspx?stat=0" target="selectedTodo" title="请确定要冻结勾选帐号"><span>冻结</span></a></li>
			<li><a class="delete"  href="/SystemManage/Basics/RightConfig/User/UserDelete.aspx?del=1" target="selectedTodo"  title="请确定要删除勾选帐号"><span>删除</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="100px">帐号</th>
				<th width="100px">姓名</th>
				<th width="100px">角色</th>
				<th width="180px">地区</th>
				<th width="200px">有效时间</th>   
				<th width="80px">状态</th>        
				<th width="200px" align=center>基本操作</th>    
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("UserCode")%>>
                    <td><input name="ids" value="<%#Eval("UserCode")%>" type="checkbox" style="height:30px"/></td>
				    <td><%# Eval("UserCode")%></td>
				    <td><%# Eval("UserName")%></td>
				    <td><%# Eval("RoleName")%></td>
				    <td><%# ParamKit.GetValue("Province", Eval("Province"), "未知")%>/<%# ParamKit.GetValue("City", Eval("City"), "未知")%>/<%# ParamKit.GetValue("Area", Eval("Area"), "未知")%></td>
				    <td><%# string.Format("{0:yyyy-MM-dd}", Eval("ValidStart"))%>&nbsp;至&nbsp;<%# string.Format("{0:yyyy-MM-dd}", Eval("ValidEnd"))%></td>
				    <td><%# (string)Eval("Status") == "1" ? "<span style='color:green'>正常</span>" : "<span style='color:red'>被冻结</span>"%></td>
				    <td align=center>
				   <a href="/SystemManage/Basics/RightConfig/User/UserDetail.aspx?uid=<%# Eval("UserId")%>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" rel="UserDetail" title="用户明细">编辑</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/RightConfig/User/UserDelete.aspx?ids=<%# Eval("UserCode")%>&stat=<%# (string)Eval("Status")=="0" ?"1":"0"%>" onclick="ZLAN_DWZ_EX.open(this);" target="ajaxTodo" title="请确定要执行操作"><%# (string)Eval("Status") == "0" ? "启用" : "冻结"%></a>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/RightConfig/User/UserDelete.aspx?ids=<%# Eval("UserCode")%>&del=1" target="ajaxTodo"  title="请确定要删除此用户">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>

<%= _framePage.GetPagerContentHtml() %>

</div>
</form>

